package com.fang.mmy.items.entity;

import java.util.Date;

public class Item {

    private Long id;

    private Long activityId;

    private String itemName;

    private String itemDesc;

    //任务类型：100 签到，101分享任务，102考试学习，103政策通知，104活动任务，105日常任务
    private Integer itemTypeCode;

    // 任务规则类型：1（全部人群），2（指定账户），3（指定条件(city,role...)），4（制定其余条件）
    private Integer itemRuleCode;

    //暂时 不用
    @Deprecated
    private Long itemRuleId;

    //具体任务匹配规则 ID
    private Long itmeDetailId;

    private Long itmeGiftId;

    //所需要任务次数
    private Integer itemNum;

    //任务奖励
    private Integer itemReward;

    private Date beginDateTime;

    private Date endDateTime;

    private Byte state;

    private String creator;

    private Date createTime;

    private Date updateTime;

    public Long getId() {
        return id;
    }

    public Item() {
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName == null ? null : itemName.trim();
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc == null ? null : itemDesc.trim();
    }

    public Integer getItemTypeCode() {
        return itemTypeCode;
    }

    public void setItemTypeCode(Integer itemTypeCode) {
        this.itemTypeCode = itemTypeCode;
    }

    public Integer getItemRuleCode() {
        return itemRuleCode;
    }

    public void setItemRuleCode(Integer itemRuleCode) {
        this.itemRuleCode = itemRuleCode;
    }

    public Long getItemRuleId() {
        return itemRuleId;
    }

    public void setItemRuleId(Long itemRuleId) {
        this.itemRuleId = itemRuleId;
    }

    public Long getItmeDetailId() {
        return itmeDetailId;
    }

    public void setItmeDetailId(Long itmeDetailId) {
        this.itmeDetailId = itmeDetailId;
    }

    public Long getItmeGiftId() {
        return itmeGiftId;
    }

    public void setItmeGiftId(Long itmeGiftId) {
        this.itmeGiftId = itmeGiftId;
    }

    public Integer getItemNum() {
        return itemNum;
    }

    public void setItemNum(Integer itemNum) {
        this.itemNum = itemNum;
    }

    public Integer getItemReward() {
        return itemReward;
    }

    public void setItemReward(Integer itemReward) {
        this.itemReward = itemReward;
    }

    public Date getBeginDateTime() {
        return beginDateTime;
    }

    public void setBeginDateTime(Date beginDateTime) {
        this.beginDateTime = beginDateTime;
    }

    public Date getEndDateTime() {
        return endDateTime;
    }

    public void setEndDateTime(Date endDateTime) {
        this.endDateTime = endDateTime;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", itemName='" + itemName + '\'' +
                ", itemDesc='" + itemDesc + '\'' +
                ", itemTypeCode=" + itemTypeCode +
                ", itemRuleCode=" + itemRuleCode +
                ", itemNum=" + itemNum +
                ", itemReward=" + itemReward +
                '}';
    }
}